package cn.iocoder.yudao.module.measure.controller.admin.point.VO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 测量点信息新增/修改 Request VO")
@Data
public class MeasurePointInfoSaveReqVO {

    @Schema(description = "数据id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23037")
    private Long id;


    @Schema(description = "关联设备树id", example = "20395")
    private Long deviceTreeId;

    @Schema(description = "监测点名称", example = "王五")
    private String measurePointName;

    @Schema(description = "监测点编号")
    private String measurePointNo;

    @Schema(description = "dtuId", example = "14416")
    private Long dtuInfoId;

    @Schema(description = "检测表协议", example = "19452")
    private Long protocolId;

    @Schema(description = "CT变比")
    private BigDecimal ctRate;

    @Schema(description = "PT变比")
    private BigDecimal ptRate;

    @Schema(description = "监测表号")
    private String measureMeterNo;

    @Schema(description = "监测表容量")
    private String measureMeterContant;

    @Schema(description = "安装日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime installDate;

    @Schema(description = "接线方式")
    private String connectWay;

    @Schema(description = "电压", example = "2")
    private String voltageType;

    @Schema(description = "电流", example = "1")
    private String currentType;

    @Schema(description = "设备注册id", example = "30450")
    private String regId;

}